package io.renren.modules.erp.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.erp.entity.InOutItem;
import io.renren.modules.erp.entity.MaterialCategory;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface InOutItemService extends IService<InOutItem> {

    InOutItem getInOutItem(long id)throws Exception ;
    List<InOutItem> getInOutItemListByIds(String ids)throws Exception ;

    List<InOutItem> getInOutItem()throws Exception ;
    PageUtils select(String name, String type, String remark, int offset, int rows)throws Exception ;
    Long countInOutItem(String name, String type, String remark)throws Exception ;
    int insertInOutItem(String beanJson, HttpServletRequest request)throws Exception ;

    int updateInOutItem(String beanJson, Long id, HttpServletRequest request)throws Exception ;
    int deleteInOutItem(Long id, HttpServletRequest request)throws Exception ;
    int batchDeleteInOutItem(String ids, HttpServletRequest request)throws Exception ;

    int checkIsNameExist(Long id, String name)throws Exception ;

    List<InOutItem> findBySelect(String type)throws Exception ;
    int batchDeleteInOutItemByIds(String ids,Long userId)throws Exception;
    int batchDeleteInOutItemByIdsNormal(String ids,Long userId) throws Exception ;
}
